<template>
  <div class="main-container" :class="{'main-container-block':block}">
    <el-card>
      <slot></slot>
    </el-card>
  </div>
</template>

<script>
import { defineComponent, ref, computed } from 'vue'
export default defineComponent({
  name: 'mainContainer',
  setup() {},
  props: {
    block: {
      type: Boolean,
      default: false,
    },
  },
})
</script>

<style lang="scss">
.main-container {
  padding: 8px 10px;
  border-radius: 10px;
  box-sizing: border-box;
  &:first-child {
    padding-top: 0;
  }
  &--block {
    height: 100%;
    .el-card {
      height: 100%;
    }
  }
}
</style>
